package com.sui.bigdata.sml.web.service;

import com.sui.bigdata.sml.web.dto.ModelGroupDTO;
import com.sui.bigdata.sml.web.dto.ModelGroupInfoDTO;

import java.util.List;

/**
 * @author songhaicheng
 * @date 2020/1/15 10:03
 * @description
 * @reviewer
 */
public interface ModelGroupService {

    ModelGroupDTO add(ModelGroupDTO dto);

    ModelGroupDTO get(Long id);

    ModelGroupDTO getByServingToken(String servingToken);

    ModelGroupInfoDTO getInfoByServingToken(String servingToken);

    Boolean modifyServingActive(String servingToken, boolean active);

    Boolean modifyServingModels(String servingToken, List<String> modelTokens);

    List<ModelGroupDTO> listByUserId(Long userId);

    List<String> listServingInstances(String servingToken);

    List<ModelGroupDTO> listHavingModelToken(String modelToken);

    Boolean refreshServing(String servingToken);
}
